Here I created a very basic procedurally generating railway. I had a bit of trouble getting it to link up and turn without messing up the graphics but as a basic model this would work in any worlds.
Procedural Generation
.fbx and textures
UV